// 防抖函数
let debounceapi = function(way:any,time:number=500){
	let timer:any = null;
	return function(this: any, ...args: any[]) {
	    clearTimeout(timer);
	    timer = setTimeout(()=> {
	      way.apply(this, args as any);
	    }, time);
	};
}
export {debounceapi}